package com.efun.center.http.config;

import java.io.Serializable;
import java.util.Map;

public class ParamInfo implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 接口配置信息
	 */
	protected MethodMapper methodMapper;

	/**
	 * 当前入参
	 */
	protected Map<String, Object> params;

	/**
	 * 超时时间
	 */
	protected int timeout;

	/**
	 * 是否忽略异常
	 */
	protected boolean ignoreErr;

    /**
     * 请求格式
     */
    protected String contentType;

	public MethodMapper getMethodMapper() {
		return methodMapper;
	}

	public void setMethodMapper(MethodMapper methodMapper) {
		this.methodMapper = methodMapper;
	}

	public Map<String, Object> getParams() {
		return params;
	}

	public void setParams(Map<String, Object> params) {
		this.params = params;
	}

	public int getTimeout() {
		return timeout;
	}

	public void setTimeout(int timeout) {
		this.timeout = timeout;
	}

	public boolean isIgnoreErr() {
		return ignoreErr;
	}

	public void setIgnoreErr(boolean ignoreErr) {
		this.ignoreErr = ignoreErr;
	}

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

}
